package com.esun.payment_api.service.impl;

import com.esun.payment_api.domain.SysDictInvContent;
import com.esun.payment_api.mapper.SysDictInvContentMapper;
import com.esun.payment_api.service.SysDictInvContentService;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("SysDictInvContentService")
public class SysDictInvContentServiceImpl implements SysDictInvContentService {

    @Resource
    SysDictInvContentMapper sysDictInvContentMapper;

    @Override
    public List<SysDictInvContent> selectByCoId(Short coId, String word, Integer pageSize, Integer pageNum) {
        PageHelper.startPage(pageNum, pageSize);
        return sysDictInvContentMapper.selectByCoId(coId, word);
    }

}
